#ifndef DATABACEMANAGER_H
#define DATABACEMANAGER_H

#include <QObject>
#include <QsqlDatabase>
class DataBaceManager : public QObject
{
    Q_OBJECT
public:
    static DataBaceManager& instance();
    bool openDatabase(const QString& path);
    void closeDatabase();
    QString getDatabasePath()const;
    void setDatabasePath(const QString& path);
    ~DataBaceManager();
private:
    explicit DataBaceManager(QObject *parent = nullptr);
    QSqlDatabase db;
    QString dbPath="C:/Users/admin/Desktop/System/MySystem/SQLite3/NYJSystem.db";

signals:
};

#endif // DATABACEMANAGER_H
